package org.elec.mac.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Bean on 2017/5/14.
 */
@Controller
public class ExtController extends BaseController {

    @RequestMapping("/accessDenied.do")
    public String accessDeniedHandler(HttpServletRequest request, HttpServletResponse response, ModelMap model) {
        model.put("errMsg", "对不起，你无权限访问该页面！");
        return "page_403";
    }
}
